package com.bailiban.search.dao;

import com.bailiban.search.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zhulang
 * @Classname ArticleDao
 * @Description ArticleDao
 */
@Repository
public interface ArticleDao extends ElasticsearchRepository<Article, String> {

    Page<Article> findByTitleOrContentLike(String title, String content,Pageable pageable);
}
